<!DOCTYPE html>
<html>
<head>
    <title></title>
</head>
<body>
<ul>
    {% for book in list %}
        <li>{{ book.id }}--{{ book.title }}</li>
    {% endfor %}
</ul>

{% for pindex in plist %}
    {% if pIndex == pindex %}
        {{ pindex }}&nbsp;&nbsp;
    {% else %}
        <a href="/app/pag{{ pindex }}/">{{ pindex }}</a>&nbsp;&nbsp;
    {% endif %}
{% endfor %}
</body>
</html>